#!/bin/bash

config_path="/usr/local/java/apache-tomcat-8.0.44/webapps"
[ -z $1 ] && echo "mei you canshu ...."  && exit 100
for i in `find ${config_path} -type f -name "$1"`
do 
	echo "========================="
	echo "$i"
	sed -i   s/118.178.133.29/120.26.76.60/g $i
	echo "========================="
done 
